package tp8.tsh.swing;

import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;

public class MainWindow extends JFrame {

	private List<JTerminal> jTerminalList;
	
	
	public MainWindow () {
		jTerminalList = new ArrayList<JTerminal>();
		
		addNewJTerminal();
		
		this.pack();
		
		this.setBounds(100, 100, 550, 550);
		
		this.setVisible(true);
	}
	
	private void addNewJTerminal() {
		JTerminal jTerminal = new JTerminal();
		
		jTerminal.setBounds(5, 5, 500, 500);
		jTerminal.setFocusable(true);
		jTerminal.setVisible(true);
		
		this.add(jTerminal);
		jTerminalList.add(jTerminal);
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MainWindow mainWindow = new MainWindow();
	}

}
